package com.example.phoneshop.service.impl;


import com.example.phoneshop.dao.CartDao;
import com.example.phoneshop.entity.Cart;
import com.example.phoneshop.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by zw ON 2018/7/10 9:22
 */
@Service
public class CartServiceImpl implements CartService {

    private CartDao cartDao;
    @Autowired
    public CartServiceImpl(CartDao cartDao) {
        this.cartDao=cartDao;
    }
    @Override
    public void addCart(Cart cart){
        cartDao.addCart(cart);
    }

    @Override
    public void createTime(Cart createTime){
        cartDao.createTime(createTime);
    }
    @Override
    public void updataTime(Cart updataTime){
        cartDao.updataTime(updataTime);
    }
    @Override
    public void status(Cart status){
        cartDao.status(status);
    }

}
